<?php
include 'sql.php';
mysqli_query($link,'SET NAMES UTF8');
$s_no=$_GET["s_no"];
$sql="select * from stuinfo where s_no='{$s_no}'";
$rs=mysqli_query($link,$sql);
$rs2=mysqli_fetch_row($rs);
?>
<!DOCTYPE html>
<html>
<head>
	<title>录入</title>
	<style type="text/css">
        .box{
            width: 300px;
            height: 500px;

            margin:0 auto;
        }
        .title{
            text-align:center;
        }
        p{
            text-align:center;
        }
    </style>
</head>
<body>
<form action="savescore.php" method="post">

<p>学号(不可修改):<input type="text" name="s_no" value="<?php echo $rs2[0]; ?>" readyonly="readyonly" style="background:#CCCCCC"/> </p>
            <p>姓名(不可修改):<input type="text" placeholder="请输入学生姓名" name="s_name" value="<?php echo $rs2[1]; ?>" readyonly="readyonly" style="background:#CCCCCC"/></p>
            <p>课程名字：<input type="text" placeholder="请输入课程名字" name="c_name" /></p>
            <p>课程分数：<input type="text" placeholder="请输入分数" name="score" /></p>
<p><input type="submit" value="录入"></p>
</form>
</body>
</html>